/**
 * Created by Administrator on 2017/4/10.
 */
var React = require('react');

module.exports = React.createClass({
    getInitialState: function () {
        return {
            order_num:'',
            order_title:''
        }
    },

    componentDidMount: function () {
        if(this.props.order_num){
            this.setState({order_num:this.props.order_num});
        }
        if(this.props.order_title){
            this.setState({order_title:this.props.order_title});
        }
    },
    render: function () {
        return (
            <div className="tips-text">
                <div className="tips-icon">
                    {this.props.order_num}
                </div>
                <p className="tips-name">{this.props.order_title}</p>
            </div>
        )
    }
});
